﻿<%@ Page Title="" Language="C#" MasterPageFile="~/EBAYVN.Master" AutoEventWireup="true"
    CodeBehind="DangKi.aspx.cs" Inherits="EBAYVN.CUSTOMERS.Pages.DangKi" %>

<%@ Register Assembly="EBAYVN.Controls" Namespace="EBAYVN.Controls" TagPrefix="EBAYVN" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="crmcontainer">
        <div class="header">
            Thông tin đăng kí</div>
        <asp:UpdatePanel runat="server" ID="upThongBao" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="crmcontainer">
                    <asp:Label ID="lbThongBao" CssClass="sucess" runat="server" Text="" />
                    <asp:Label ID="lbThongBaoLoi" CssClass="error" runat="server" Text="" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel runat="server" ID="upInfor" UpdateMode="Conditional">
            <ContentTemplate>
                <table class="crmtable">
                    <tbody>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Quốc gia</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:DropDownList ID="ddlQuocGia" OnSelectedIndexChanged="ddlQuocGia_OnChange" TabIndex="1" AutoPostBack="true" runat="server" />
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Tỉnh thành</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:DropDownList ID="ddlTinhThanh" TabIndex="2" runat="server" />
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Tên đăng nhập</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtTenDangNhap" runat="server" Width="150px" MaxLength="10" TabIndex="1" />
                                    <asp:RequiredFieldValidator ID="rqTenDangNhap" runat="server" ControlToValidate="txtTenDangNhap"
                                        Display="Dynamic" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True">Tên đăng nhập không được trống</asp:RequiredFieldValidator>
                                </div>
                                <div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Mật khẩu</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtMatKhau" TextMode="Password" runat="server" Width="150px" MaxLength="10"
                                        TabIndex="2" />
                                    <asp:RequiredFieldValidator ID="rpMatKhau" runat="server" ControlToValidate="txtMatKhau"
                                        ErrorMessage="RequiredFieldValidator" Display="Dynamic">Mật khẩu không được rỗng</asp:RequiredFieldValidator>
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Gõ lại mật khẩu</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtMatKhauRe" TextMode="Password" runat="server" Width="150px" MaxLength="10"
                                        TabIndex="3" />
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtMatKhau"
                                        ControlToValidate="txtMatKhauRe" Display="Dynamic" ErrorMessage="CompareValidator">Mật khẩu gõ lại không đúng với mật khẩu trên</asp:CompareValidator>
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Họ tên</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtHoTen" runat="server" Width="150px" TabIndex="4" />
                                    <asp:RequiredFieldValidator ID="rpHoTen" runat="server" ControlToValidate="txtHoTen"
                                        Display="Dynamic" ErrorMessage="RequiredFieldValidator">Họ Tên không được trống</asp:RequiredFieldValidator>
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Giới tính</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:DropDownList ID="ddlGioiTinh" runat="server" TabIndex="5" >
                                        <asp:ListItem Text="Nam" Value="1" />
                                        <asp:ListItem Text="Nữ" Value="0" />
                                    </asp:DropDownList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Tên công ty</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtTenCongTy" runat="server" Width="150px" TabIndex="6" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Email</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtEmail" runat="server" Width="150px" MaxLength="50" TabIndex="7" />
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                        ErrorMessage="RegularExpressionValidator" ValidationExpression="^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$"
                                        Display="Dynamic">Email không hợp lệ</asp:RegularExpressionValidator>
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>WebSite</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtWebSite" runat="server" Width="150px" TabIndex="8" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Điện thoại</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtDienThoai" runat="server" Width="150px" TabIndex="9" />
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Địa chỉ</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtDiaChi" runat="server" Width="250px" TabIndex="10" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDiaChi"
                                        Display="Dynamic" ErrorMessage="RequiredFieldValidator">Địa chỉ không được để trống</asp:RequiredFieldValidator>
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong>Mã bảo mật</strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:TextBox ID="txtMaBaoMat" runat="server" Width="250px" TabIndex="11" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td class="crmcell right width-100">
                                <div class="left">
                                <cc1:CaptchaControl ID="ccJoin" runat="server" CaptchaBackgroundNoise="Extreme" CaptchaLength="5"
                                    CaptchaHeight="60" CaptchaWidth="210" CaptchaLineNoise="None" CaptchaMinTimeout="5"
                                    CaptchaMaxTimeout="240" /></div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <div class="left">
                                    <asp:TextBox ID="txtCapchar" runat="server" TabIndex="12" />
                                </div><div class="requie"></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right width-100">
                                <strong></strong>
                            </td>
                            <td class="crmcell width-250">
                                <div class="left">
                                    <asp:Button CssClass="crmbutton" TabIndex="13" runat="server" ID="btnDangKi" Text="Đăng kí" UseSubmitBehavior="true"
                                        OnClick="btnDangKi_Click" />
                                </div>
                                <div class="left">
                                    <asp:Button CssClass="crmbutton" TabIndex="14" runat="server" ID="btnCancel" Text="Hủy" UseSubmitBehavior="true"
                                        OnClick="btnCancel_Click" />
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
